package com.woniuxy.main.service;

import com.woniuxy.main.pojo.Room;

import java.util.List;

public interface RoomService {

	//查询所有房间
	public List<Room> loadAllRoom();
	//筛选查询房间
	public List<Room> searchRoom(Room room);
	//添加房间
	public boolean addRoom(Room room);
	//房间的移除
	public boolean delectRoom(int room_id);
	//状态的修改，可住，维修中。
	public boolean updateStatus(int status,int room_id);
	//折扣的修改
	public boolean updateCut(double cut);

	/**查询:当前进过逻辑判断,实际可住房间
	 *
	 * @return 可入住房间集合
	 * @throws Exception
	 */
	List<Room> availableRoom()throws Exception;
}
